package com.atguigu.client;

import com.atguigu.entity.AlbumAttributeValue;
import com.atguigu.entity.AlbumInfo;
import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "tingshu-search")//,fallback = AlbumInfoFallBack.class)
public interface SearchFeignClient {

    @GetMapping("api/search/albumInfo/onSaleAlbum/{albumId}")
    public void onSaleAlbum(@PathVariable Long albumId);

//    @GetMapping("batchOnSaleAlbum")
//    public String batchOnSaleAlbum();

    @GetMapping("api/search/albumInfo/offSaleAlbum/{albumId}")
    public void offSaleAlbum(@PathVariable Long albumId);

    @GetMapping("api/search/albumInfo/updateRanking")
    public RetVal updateRanking();
}
